Skip to content

Motia.dev tutorial in docs#514

Open
sohanmaheshwar wants to merge 6 commits intomainfrom
motia
Open

Motia.dev tutorial in docs#514
sohanmaheshwar wants to merge 6 commits intomainfrom
motia

Conversation

@sohanmaheshwar
Copy link
Contributor

Added the Motia guide from the blog (https://authzed.com/blog/building-a-multi-tenant-rag-with-fine-grain-authorization-using-motia-and-spicedb) also to the tutorials section of docs

@vercel
Copy link
Contributor

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 20, 2026 1:52pm

Request Review

npm run spicedb:sample
```

![image](https://hackmd.io/_uploads/SyiImSJJZe.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

created: user:alice is owner of farm:1

then what is the point of writing that user:alice is an admin of the organization that owns farm:1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i didn't get it 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the image you are showing 3 tuple writes:

  1. org:1 # admin @ user:alice
  2. farm:1 # owner @ org:1
  3. farm:1 # owner @ user:alice

then you are checking: farm:1 # view @ user:alice ?

the schema says permission view = viewer + editor + owner + organization->view

so, you can answer "yes" with tuples (1) and (2), or with tuple (3).

my point was - why bother writing (1) and (2) when (3) already answers "yes"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case the third tuple write is not necessary, but i'm assuming the original author (rohit from motia + some LLM) added it in in case there was a change later for a distinct authz part.

Let's leave it as is for now, imo

sohanmaheshwar and others added 3 commits February 20, 2026 14:50
Co-authored-by: Maria Ines Parnisari <maria.ines.parnisari@authzed.com>
Co-authored-by: Maria Ines Parnisari <maria.ines.parnisari@authzed.com>
Co-authored-by: Maria Ines Parnisari <maria.ines.parnisari@authzed.com>
@vercel
Copy link
Contributor

vercel bot commented Mar 2, 2026

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: docs.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Preview deployment status for this pull request.

Name Status Preview Updated (UTC)
docs 🟢 Ready Visit Preview Mar 02, 2026 07:00pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants